package com.lanchetech.dao;

import com.lanchetech.bean.request.PageReq;import com.lanchetech.bean.vo.SelectionApplyVO;import com.lanchetech.entity.SelectionApply;
import org.apache.ibatis.annotations.Mapper;import org.apache.ibatis.annotations.Param;import java.util.List;

@Mapper
public interface SelectionApplyMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SelectionApply record);

    int insertSelective(SelectionApply record);

    SelectionApply selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SelectionApply record);

    int updateByPrimaryKey(SelectionApply record);

    List<SelectionApplyVO> findAllPage(PageReq req);

    int updateAuditStatusAndRemarkAndUpdatedAtById(SelectionApply selectionApply);

    int updateReturnAddressById(@Param("updatedReturnAddress") String updatedReturnAddress, @Param("id") Long id);

    SelectionApply findOneByUserId(@Param("userId") Long userId);
}